<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>loginform</title>
</head>
<body>
	<form id="sl_login_form" method="post"
		action="<c:url value='/j_spring_security_check'/>">
		<fieldset>
			<label class="required" for="j_username">아이디</label> <input
				id="account_id" name="j_username" size="20" type="text" value="" />
		</fieldset>
		<fieldset>
			<label class="required" for="j_password">비밀번호</label> <input
				id="account_pwd" name="j_password" size="50" type="password"
				value="" />
		</fieldset>
		<c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}" />
		<c:remove var="SPRING_SECURITY_LAST_EXCEPTION" scope="session" />
		<fieldset>
			<div class="form-buttons">
				<button type="submit" id="sign-in" class="button-round">
					<span>로그인</span>
				</button>
				<a href="<c:url value='/user/signup'/>">가입하기</a>
				<div class="remember">
					<input id="_spring_security_remember_me"
						name="_spring_security_remember_me" type="checkbox" value="true" />
					<label class="remember_me" for="_spring_security_remember_me">로그인
						유지</label>
				</div>
			</div>
		</fieldset>
	</form>
</body>
</html>
